AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
The interface for an HTTP request that is agnostic of the underlying HTTP API.
Namespace: Amazon.Runtime
Assembly: AWSSDK.Core.dll
Version: 3.x.y.z
public interface IHttpRequest<> IDisposable
The IHttpRequest<> type exposes the following members
Name | Type | Description | |
---|---|---|---|
Method | System.String |
The HTTP method or verb. |
|
RequestUri | System.Uri |
The request URI. |
Name | Description | |
---|---|---|
Abort() |
Aborts the HTTP request. |
|
ConfigureRequest(IRequestContext) |
Configures a request as per the request context. |
|
GetRequestContent() |
Gets a handle to the request content. |
|
GetRequestContentAsync() |
Gets a handle to the request content. |
|
GetRequestContentAsync(CancellationToken) | ||
GetResponse() |
Returns the HTTP response. |
|
GetResponseAsync(CancellationToken) |
Returns the HTTP response. |
|
SetRequestHeaders(IDictionary<String, String>) |
Sets the headers on the request. |
|
SetupProgressListeners(Stream, Int64, object, EventHandler<StreamTransferProgressArgs>) |
Sets up the progress listeners |
|
WriteToRequestBody(TRequestContent, Stream, IDictionary<String, String>, IRequestContext) |
Writes a stream to the request body. |
|
WriteToRequestBody(TRequestContent, Byte[], IDictionary<String, String>) |
Writes a byte array to the request body. |
|
WriteToRequestBodyAsync(TRequestContent, Stream, IDictionary<String, String>, IRequestContext) | ||
WriteToRequestBodyAsync(TRequestContent, Byte[], IDictionary<String, String>, CancellationToken) |
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer, 3.5